package com.crawler.harbour.common;


/**
 * 业务处理结果类
 *
 */
public class Result {

	/**
	 * success or error
	 */
	private String result;
	/**
	 * 业务出错id
	 */
	private String errorId;
	/**
	 * 业务提示信息
	 */
	private String message;
	
	/**
	 * @param result 
	 * @param errorId
	 * @param message
	 */
	public Result(String result, String errorId, String message) {
		this.result = result;
		this.errorId = errorId;
		this.message = message;
	}
	public Result(String result, String message) {
		this.result = result;
		this.message = message;
	}
	public String getResult() {
		return result;
	}
	public void setResult(String result) {
		this.result = result;
	}
	public String getErrorId() {
		return errorId;
	}
	public void setErrorId(String errorId) {
		this.errorId = errorId;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	@Override
	public String toString() {
		return "ResultMessage [result=" + result + ", errorId=" + errorId + ", message=" + message + "]";
	}
	
}
